package com.zhongxi.guoyuan.utils;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;

import com.zhongxi.guoyuan.application.MyApplication;

/**
 * Created by Administrator on 2018/1/9.
 */

public class UiUtils {


    public static Context getContext() {
        return MyApplication.getInstance();
    }

    public static View inflate(int id) {
        return View.inflate(getContext(), id, null);
    }

    public static int getColor(int color) {
        return getContext().getResources().getColor(color);
    }

    public static String getString(int String) {
        return getContext().getString(String);
    }

}
